package com.kuang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

/**测试环境
 * @author FHL
 */
@Controller
public class HelloController {
/*@GetMapping("/hello")
    public String hello(){
    return "hello !";
}*/
@RequestMapping("/test")
    public String test(Model model){
    model.addAttribute("msg", "hello,test!!!!");
    model.addAttribute("users",Arrays.asList("hello,test!!!!","数组数据","成功了吗？"));
    return "test";
}
}
